﻿using JNPF.Common.Security;
using JNPF.Common.Models;
using JNPF.Website.Entitys.Dto.WebsiteContactAboutMe;
using Mapster;

namespace JNPF.Website.Entitys.Mapper.WebsiteContactAboutMe;

public class Mapper : IRegister
{
	public void Register(TypeAdapterConfig config)
	{
        config.ForType<WebsiteContactAboutMeCrInput, WebsiteContactAboutMeEntity>()
            .Map(dest => dest.WhoImg, src => src.whoImg.ToJsonString())
            .Map(dest => dest.FuncImg, src => src.funcImg.ToJsonString())
        ;
    }
}
